package com.example.demo.dao;

import com.example.demo.model.Article;

import java.util.List;

public interface ArticleMapper {
    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectAll();

    List<Article> selectMatchAllByBoardId(Long boardId);
     Article selectArticleById(Long articleId);

   List<Article> selectArticleByUserId(Long userId);
}